package com.myjob.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role")
public class Role implements Serializable {
	@TableId(type = IdType.ID_WORKER)
	private String id;

	/** 角色名称 */
	private String name;

	/** 权限描述 */
	private String authority;

	@TableField(exist = false)
	private Long [] resourceList;

	@TableField(exist = false)
	private List<Resource> resources;
}
